package com.xj.api.bussiness.deviceImg.service.impl;

import com.xj.common.bussiness.deviceImg.entity.TbDeviceImg;
import com.xj.common.bussiness.deviceImg.mapper.TbDeviceImgMapper;
import com.xj.api.bussiness.deviceImg.service.ITbDeviceImgService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 设备的照片表（如正前方，右后方） 服务实现类
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-27
 */
@Service
public class TbDeviceImgServiceImpl extends ServiceImpl<TbDeviceImgMapper, TbDeviceImg> implements ITbDeviceImgService {
    @Autowired
    private TbDeviceImgMapper tbDeviceImgMapper;

    @Override
    public List<TbDeviceImg> getDeviceImagByCondition(TbDeviceImg bean) {
        return tbDeviceImgMapper.getDeviceImgByCondition(bean);
    }

    @Override
    public List<TbDeviceImg> getNewDeviceImgByEntity(TbDeviceImg bean) {
        return tbDeviceImgMapper.getNewDeviceImgByEntity(bean);
    }
}
